package com.web.java0327mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author lenovo
 * @Description
 * @Date2025/3/27 下午5:37
 */
@Data
@AllArgsConstructor//带所有参数的构造方法
@NoArgsConstructor//无参的构造方法
@TableName("department") //表名
public class Department {
    @TableId(type= IdType.AUTO)
    private Integer id;
    private String name;
    private Integer account;
}
